import { http } from '@/utils/http'

interface CaptchaInfo {
  captcha: string
  captchaId: string
}

function getCaptcha() {
  return http.request<CaptchaInfo>('get', '/api/captchas')
}

export { getCaptcha, type CaptchaInfo }
